package com.wfk.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wfk.entity.SysMenus;
import com.wfk.mapper.SysMenusMapper;
import com.wfk.service.ISysMenusService;

/**
 * <p>
 * 平台菜单表 服务实现类
 * </p>
 *
 * @since 2018-12-05
 */
@Service
public class SysMenusServiceImpl extends ServiceImpl<SysMenusMapper, SysMenus> implements ISysMenusService {

	@Override
	public SysMenus getByUrlAndId(String url, List<Integer> list) {
		QueryWrapper<SysMenus> ew = new QueryWrapper<SysMenus>();
		ew.eq("url", url) ;
		ew.in("id", list) ;
		SysMenus sysMenus = super.getOne(ew);
		return sysMenus ; 
	}
}
